<template>
  <div class="d-flex jc-center title_wrap">
    <div class="left-rectangle"></div>
    <div class="right-rectangle"></div>
    <div class="light"></div>
    <div class="d-flex jc-center">
      <div class="title" @click="goIndex">
        <span class="title-text">明月智联非接触式皮带秤</span>
      </div>
    </div>
    <div class="right-component">
      <clock/>
<!--      <div class="setting_icon" @click="setSettingShow(true)">
        <img src="@/assets/img/headers/setting.png" alt="设置">
      </div>-->
    </div>

  </div>
</template>

<script setup lang="ts">
import useSettingStore from '@/stores/setting'
const { setSettingShow } =useSettingStore()
const router = useRouter()
function goIndex(){
  router.push('/index')
}
</script>

<style scoped lang="scss">
.title_wrap {
  height: 60px;
  background-image: url("@/assets/img/top.png");
  background-size: cover;
  background-position: center center;
  position: relative;
  margin-bottom: 4px;

  .light {
    position: absolute;
    bottom: -26px;
    background-image: url("@/assets/img/guang.png");
    background-position: 80px center;
    width: 100%;
    height: 56px;
  }

  .left-rectangle,
  .right-rectangle {
    position: absolute;
    top: -2px;
    width: 140px;
    height: 6px;
    background-image: url("@/assets/img/headers/juxing1.png");
  }

  .left-rectangle {
    left: 11%;
  }

  .right-rectangle {
    right: 11%;
    transform: rotate(180deg);
  }

  .right-component {
    position: absolute;
    right: 5px;
    top: 20px;
    //width: 290px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 0 0;
    .setting_icon {
      cursor: pointer;
      margin-left: 12px;
      img{
        width: 20px;
        height: 20px;
      }
    }
  }
}
.title {
  position: relative;
  text-align: center;
  background-size: cover;
  color: transparent;
  height: 60px;
  line-height: 46px;

  .title-text {
    user-select: none;
    cursor:pointer;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 6px;
    width: 100%;
    background: linear-gradient(
      92deg,
      #0072ff 0%,
      #00eaff 48.8525390625%,
      #01aaff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
</style>
